package com.augmentum.login.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class Prop {

    protected static Properties properties = null;

    static {
        InputStream in = Prop.class.getClassLoader().getResourceAsStream("app.properties");
        try {
            properties = new Properties();
            properties.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (in != null) {
                    in.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

    public static String get(String key) {
        return properties.getProperty(key);
    }
}
